﻿@{
    ViewBag.Title = "上报情况";
    Layout = "~/Views/Shared/_LayoutList.cshtml"; 
}
@(       
 Html.nbGridFor<ReportedOrder>(s =>
{
    s.Action("List");
    s.ExtParam(new { date = ViewBag.NextMonday });
    s.Columns(col =>
    {
        col.Bind(m => m.Id).IsKey();
        col.Bind(m => m.OrderName).AsQuery().AsSearch();
        col.Bind(m => m.SiteName).Width(60).AsQuery().AsSearch();
        col.Bind(m => m.ReportUserName).Width(60).AsQuery().AsSearch();
        col.Bind(e => e.Status).Width(50).AsSearch();
        col.BindDateTime(m => m.ReportDate).AsSearch();
        col.BindDateTime(m => m.BeginDate).AsSearch();
        col.BindDateTime(m => m.EndDate);
        col.Bind(e => e.TotalCost).Width(80).Align(GridAlign.Right).Title("预计成本");

    });
    s.Buttons(b =>
    {
        b.Bind(GridButtonType.Import, "导出数据");
    });
}))